import Router from 'koa-router'
// import Province from '../dbs/models/province'

const router = new Router({
  prefix: '/geo'
})

// 获取省份信息
router.get('/getProvince', require('./pcData/getProvince'))

// 获取城市信息
router.get('/getCity', require('./pcData/getCity'))

// 获取当前位置
router.get('/getPosition', require('./pcData/getPosition'))

// 根据省份id获取对应的城市
router.get('/getCityByPid/:id', require('./pcData/getCityByPid'))

// 获取菜单数据
router.get('/getMenu', require('./pcData/getMenu'))
export default router
